Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

St7735 t4 rewrite #4

Closed
wants to merge 31 commits into from
Closed

St7735 t4 rewrite #4

wants to merge 31 commits into from

Conversation

mjs513
Copy link
Contributor

@mjs513 mjs513 commented Sep 27, 2019

Paul
This rewrite of the ST7735 library mirrors the DMA_LOW changes that were submitted by Kurte with additional changes that makes it look like that of the ILI9341_t3n library. In other words it takes out most of the dependency on the Adafruit GFX library graphic primitives and updates them with the new library for framebuffer support as appropriate.

Mike

mjs513 and others added 30 commits August 28, 2019 14:09
Clipping is fixed but fonts broken
Needed to move button implementation into header file to remove issue of duplicate code being compiled and linked in...
Needed to move button implementation into header file to remove issue of duplicate code being compiled and linked in sketch if Adafruit_GFX is called from with the sketch.
writecommand_last did not look at if it was hwspi or not so it walked through null ptr...
Compiles and links if Adafruit_GFX is included
Before this would always go to bitbang...

But with this one, it uses _pspi->transfer() if it detects this.

Also sped up, that if we call transfer16, have new function spiwrite16, that if possible calls _pspi->transfer16()  which speeds things up...
…ut_hardware_dc

T3.x SPI pins MOSI/SCK not DC...
The constructor was not called to initialize the object correctly... So made them static (like they are in ili9341_t3n).  But T3.6 has enough memory for more than one of these, so I allow DMA on each of the SPI busses.  So I statically allocate 3 groups of them.
T3.6 did not work with DMASettings in object
Still need to figure out properly how to handle the
y cursor for the three different font types...

But It is starting to work.
More support of Adafruit font.

Add ability to set Text size different for X and Y

Add getTextBounds to allow you to get bounds of text.  Original from Adafruit, Added support for our fonts, slightly different values than strPixelLen.

Keywords updated
It was supposed to go to the two size version...
So will infinite recurse
Make sure gfxFont NULL at constructor
Added the code from the ILI9341_t3n library to support opaque text output.

Also fixed a hang as drawFastHLine was not offsetting and was not using the clip rectangle which caught a -1 value on ILI9341_t3n...
GFX Fonts support for Opaque output
Problem was in this case a member variable was not init to the count of pixels.  Which we use in frame buffer mode...
Fix bug of calling setFrameBuffer
@mjs513
Copy link
Contributor Author

mjs513 commented Nov 21, 2019

Closing this inorder to rebaseline to avoid erroneous comparison errors

@mjs513 mjs513 closed this Nov 21, 2019
@mjs513 mjs513 deleted the ST7735_T4_rewrite branch November 21, 2019 17:58
PaulStoffregen pushed a commit that referenced this pull request Jan 4, 2023
created dot_a_linkage and Updated for multiple displays usuage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants